package com.leo.manage_system.entity.vo;

import com.leo.manage_system.entity.Res;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@Data
public class ResVo {

    @ApiModelProperty(value = "物品名称")
    private String name;

    @ApiModelProperty(value = "物品描述")
    private String description;

    @ApiModelProperty(value = "图片链接")
    private String picture;

    @ApiModelProperty(value = "发现位置")
    private String location;

    @ApiModelProperty(value = "发现时间")
    private Date findTime;

    @ApiModelProperty(value = "丢失 找到")
    private Integer resType;

    public void copyFromRes(Res res){
        name = res.getName();
        description = res.getDescription();
        picture = res.getPicture();
        location = res.getLocation();
        findTime = res.getFindTime();
    }


}
